package com.ruoyi.task.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 监控任务日志对象 kw_task_log
 * 
 * @author gonianer
 * @date 2023-11-17
 */
public class KwTaskLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 父任务id */
    @Excel(name = "父任务id")
    private Long pId;

    /** 任务id */
    @Excel(name = "任务id")
    private Long taskId;

    /** 日志级别 */
    @Excel(name = "日志级别")
    private String logLevel;

    /** 日志内容 */
    @Excel(name = "日志内容")
    private String logMsg;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setpId(Long pId)
    {
        this.pId = pId;
    }

    public Long getpId()
    {
        return pId;
    }
    public void setTaskId(Long taskId)
    {
        this.taskId = taskId;
    }

    public Long getTaskId()
    {
        return taskId;
    }
    public void setLogLevel(String logLevel) 
    {
        this.logLevel = logLevel;
    }

    public String getLogLevel() 
    {
        return logLevel;
    }
    public void setLogMsg(String logMsg) 
    {
        this.logMsg = logMsg;
    }

    public String getLogMsg() 
    {
        return logMsg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pId", getpId())
            .append("taskId", getTaskId())
            .append("logLevel", getLogLevel())
            .append("logMsg", getLogMsg())
            .append("createTime", getCreateTime())
            .toString();
    }
}
